home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 37
/
Aminet 37 (2000)(Schatztruhe)[!][Jun 2000].iso
/
Aminet
/
dev
/
misc
/
AWNP_2-39.lha
/
AWNP
/
AWNP-Docs
/
Demos
/
CAList
< prev
next >
Wrap
AmigaDOS Script File
|
1999-08-25
|
1KB
|
40 lines
.key dest,all/s,dirs/s,files/s,wide/k,high/k,pat/k
.bra {
.ket }
; set text for pattern match in list command
set pat ""
if not {pat$1} eq 1
set pat pat={pat}
endif
; build a temp file defining the gui
; define the window and a list broewser in it
echo >t:thelist.ca "*"CAList {dest} *" defg q a cs*nlistbrowser ro lbl *"Name|Size|Date|Time|Protection|Key|Path*" arrows minw {wide$600} minh {high$200} st"
; the lformat creates a list brwser node for each file.
list >>t:thelist.ca {dest} {all} {dirs} {files} $pat lformat "browsernode gt *"%n|%l|%d|%t|%a|%k|%s%s*""
; some disabled menus to display a little info
echo >>t:thelist.ca "menu gt *"Project |About|$!List wrapper with|$! GUI by AWNPipe:" noline
echo >>t:thelist.ca "|Author |$!William H.M. Parker|$! <bill@amitrix.com>*""
;sort list by column 6 (path)
echo >>t:thelist.ca "sort 6"
; open the gui
echo >>t:thelist.ca "open"
; send the file to the pipe
copy t:thelist.ca awnpipe:/xc
; cleanup
delete t:thelist.ca >nil:
unset pat
;The gui only displays information all gadgets are read only. It goes away
;when the user closes its window